const start = done => {
  // Console.log(gulp)
  done();
};

const gulp = require("gulp");
const { series } = gulp;
// Series  串行任务
// parallel 并行任务
const task1 = done => {
  setTimeout(() => {
    console.log("task_1");
    done();
  }, 1);
};

const task2 = done => {
  console.log("task_2");
  done();
};

const task3 = done => {
  console.log("task_3");
  done();
};

const all = series(task1, task2, task3);
// 异步任务
async function promise() {
  let a = await new Promise((resolve) => {
    resolve("hhhh");
  });
  console.log(a);
}

module.exports = {
  all,
  promise,
  start
};
